]> git.neil.brown.name Git - wiggle.git/commitdiff
vpatch: make things static that are not shared.
authorNeilBrown <neil@brown.name>
Sat, 3 Oct 2020 10:09:57 +0000 (20:09 +1000)
committerNeilBrown <neil@brown.name>
Sat, 3 Oct 2020 10:09:57 +0000 (20:09 +1000)
The only symbol from vpatch.c that needs to be exported is "vpatch", so
make the rest "static"

Signed-off-by: NeilBrown <neil@brown.name>
vpatch.c

index 1e267119e2b311b73f3bb5569e3de3ff5f6323e1..353c2f4616494943482b46cf960954851efb15b0 100644 (file)
--- a/vpatch.c
+++ b/vpatch.c
@@ -50,9 +50,9 @@ static void term_init(int raw);
 static int intr_kills = 0;
 
 /* global attributes */
-unsigned int a_delete, a_added, a_common, a_sep, a_void,
+static unsigned int a_delete, a_added, a_common, a_sep, a_void,
        a_unmatched, a_extra, a_already;
-unsigned int a_has_conflicts, a_has_wiggles, a_no_wiggles, a_saved;
+static unsigned int a_has_conflicts, a_has_wiggles, a_no_wiggles, a_saved;
 
 /******************************************************************
  * Help window
@@ -68,7 +68,7 @@ unsigned int a_has_conflicts, a_has_wiggles, a_no_wiggles, a_saved;
  * A help text is an array of lines of text
  */
 
-char *help_help[] = {
+static char *help_help[] = {
        "   You are viewing the help page for the help viewer.",
        "You normally get here by typing '?'",
        "",
@@ -83,14 +83,14 @@ char *help_help[] = {
        NULL
 };
 
-char *help_missing[] = {
+static char *help_missing[] = {
        "The file that this patch applies to appears",
        "to be missing.",
        "Please type 'q' to continue",
        NULL
 };
 
-char *help_corrupt[] = {
+static char *help_corrupt[] = {
        "This patch appears to be corrupt",
        "Please type 'q' to continue",
        NULL